import request from '@/utils/request'

// 查询产品
export function queryProduct(data) {
  return request({
    url: '/console/product/queryProduct',
    method: 'post',
    data: data
  })
}

// 添加产品
export function addProduct(data) {
  return request({
    url: '/console/product/addProduct',
    method: 'post',
    data: data
  })
}

// 删除产品
export function deleteProduct(data) {
  return request({
    url: '/console/product/deleteProduct',
    method: 'post',
    data: data
  })
}

// 修改产品
export function updateProduct(data) {
  return request({
    url: '/console/product/updateProduct',
    method: 'post',
    data: data
  })
}

export function queryAllProduct() {
  return request({
    url: '/console/product/queryAllProduct',
    method: 'post'
  })
}
